package com.neusoft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.model.Attendance;
import com.neusoft.model.Worktype;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;

@Mapper
public interface AttendanceMapper extends BaseMapper<Attendance> {
    Worktype getWorkTypeByUser(Integer id);

    Integer getWorkDayIdByDate(Date date);

    Integer getAttendanceApproverId(Integer id);

    String getEmpNameById(Integer empId);

    Integer updateAttendanceTime(Integer attendanceId, Date newCheckInTime, Date newCheckOutTime, int i);
}